//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<ResourceProvider.h>
///	@path	~/src/scene/resource/
///	@date	2008/04/05
///	@desc	.

#pragma once

#include "xeres.h"

#include "database/DataManager.h"

#include "graphics/IGeometry.h"
#include "graphics/IModel.h"
#include "graphics/RenderManager.h"
#include "graphics/IEffect.h"
#include "graphics/IEffectCompiled.h"

namespace xeres {

	/*! 
		\class	ResourceProvider
		\brief
	*/
	class ResourceProvider : public DataManager
	{
	protected:

		/// \name Constructor & Destructor
		//@{

		/// \ctor
		ResourceProvider( void );

		/// \dtor
		~ResourceProvider( void );

		//@}

		/// \name Internal Method
		//@{

		/// \brief Initialize
		void Initialize( RenderManager * renderman );

		/// \brief Finalize
		void Finalize( void );

		//@}

	public:

		/// \name Query Information
		//@{

		/// \brief	Query color order.
		enum ColorOrder QueryColorOrder( void );

		//@}

		/// \name Resource Construction
		//@{

		/// \brief	Get renderer.
		RefWeak<IRenderer> Renderer( void );

		//@}

	private:

		//@ data

		// renderer
		RenderManager *		m_renderman;

	};

} // namespace xeres
